<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<h:head />
<h:body>
	<ui:composition template="/layout/layout.xhtml">

		<ui:define name="content">

			<h:form prependId="false">

				<p:dataTable id="dataTable" var="item" value="#{stokeItemController.stokeItems}" paginator="true" rows="10"
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="5,10,15">
					<!-- <f:facet name="header">
            Ajax Pagination
        </f:facet> -->

					<p:column>
						<f:facet name="header">
							<h:outputText value="Id" />
						</f:facet>
						<h:outputText value="#{item.id}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="Code" />
						</f:facet>
						<h:outputText value="#{item.code}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="Buy price" />
						</f:facet>
						<h:outputText value="#{item.priceBuy}" />
					</p:column>

					<p:column>
						<f:facet name="header">
							<h:outputText value="Sell price" />
						</f:facet>
						<h:outputText value="#{item.priceSell}" />
					</p:column>
				</p:dataTable>

			</h:form>


		</ui:define>
	</ui:composition>
</h:body>
</h:html>
